package org.turnlink.sclm.dao;

import java.util.List;

import org.turnlink.sclm.model.ContactContactList;
import org.turnlink.sclm.model.ContactList;

public interface ContactListDao {

	public void saveOrUpdate(ContactList contactList);
	
	public List<ContactList> findByAccountId(Integer accountId);

	public void removeByAccountAndListName(Integer accountId, String listName);
	
	public void removeByAccountAndListId(Integer accountId, Integer listId);

	public ContactList findByAccountAndListId(Integer accountId, Integer listId);

	public ContactList findByAccountAndListName(Integer accountId, String listName);
	
	public void addContactsToList(Integer accountId, String listName, List<Integer> contactIds);
	
	public void removeContactsFromList(Integer accountId, String listName, List<Integer> contactIds);
	
	public List<ContactContactList> findContactsFromList(Integer accountId, String listName);
	
}
